package com.hsnn.medstgmini.subscribe.model;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

import com.hsnn.medstgmini.util.FormatDate;

/**
 * @category 预约记录 实体类
 * @author 韩守松
 * @date 2015年8月31日
 */
@Entity
@Table(name="bid_subscribe_record")
public class BidSubscribeRecord implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	private String bidSubscribeRecordId;//预约记录ID	
	private String bidSubscribeDetailId;//预约详情ID	
	private String compId;//企业ID	
	private Integer status;//状态0停用1启用	
	private String remarks;//备注 	
	private Integer processStatus;//处理状态 0未处理1已处理
	private Date processDatetime;//处理时间
	private Date updDatetime;//更新时间
	private String updDatetimeStr;//
	private String updUser;//更新人
	
	private String projId;//项目id
	
	private String recordId;//验证是否存在记录id
	private String detailId;//预约过的详情Id
	@Id
	@Column(name="bid_subscribe_record_id",length=36 )
	public String getBidSubscribeRecordId() {
		return bidSubscribeRecordId;
	}
	
	public void setBidSubscribeRecordId(String bidSubscribeRecordId) {
		this.bidSubscribeRecordId = bidSubscribeRecordId;
	}
	
	@Column(name="bid_subscribe_detail_id",length=36 )
	public String getBidSubscribeDetailId() {
		return bidSubscribeDetailId;
	}
	public void setBidSubscribeDetailId(String bidSubscribeDetailId) {
		this.bidSubscribeDetailId = bidSubscribeDetailId;
	}
	
	@Column(name="comp_id",length=36 )
	public String getCompId() {
		return compId;
	}
	public void setCompId(String compId) {
		this.compId = compId;
	}
	
	@Column(name="status",length=4 )
	public Integer getStatus() {
		return status;
	}
	public void setStatus(Integer status) {
		this.status = status;
	}
	
	@Column(name="remarks",length=4000 )
	public String getRemarks() {
		return remarks;
	}
	public void setRemarks(String remarks) {
		this.remarks = remarks;
	}
	
	@Column(name="upd_datetime" )
	public Date getUpdDatetime() {
		return updDatetime;
	}
	public void setUpdDatetime(Date updDatetime) {
		this.updDatetime = updDatetime;
	}
	
	@Transient
	public String getUpdDatetimeStr() {
		if(null != updDatetime){
			updDatetimeStr = FormatDate.toFullFormat(updDatetime);
		}
		return updDatetimeStr;
	}
	public void setUpdDatetimeStr(String updDatetimeStr) {
		this.updDatetimeStr = updDatetimeStr;
	}
	
	@Column(name="upd_user",length=36 )
	public String getUpdUser() {
		return updUser;
	}
	public void setUpdUser(String updUser) {
		this.updUser = updUser;
	}

	@Transient
	public String getProjId() {
		return projId;
	}

	public void setProjId(String projId) {
		this.projId = projId;
	}

	@Transient
	public String getRecordId() {
		return recordId;
	}

	public void setRecordId(String recordId) {
		this.recordId = recordId;
	}

	@Transient
	public String getDetailId() {
		return detailId;
	}

	public void setDetailId(String detailId) {
		this.detailId = detailId;
	}

	@Column(name="process_status",length=4)
	public Integer getProcessStatus() {
		return processStatus;
	}

	public void setProcessStatus(Integer processStatus) {
		this.processStatus = processStatus;
	}

	@Column(name="process_datetime")
	public Date getProcessDatetime() {
		return processDatetime;
	}

	public void setProcessDatetime(Date processDatetime) {
		this.processDatetime = processDatetime;
	}
	
	
}
